package com.zhongli.devplatform.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 年级上下册枚举
 * @author WuXiCheng
 * @version 1.0
 * @since  2020/7/25 15:06
 */
@Getter
public enum LevelEnum {

    Up(0, "上册"),        // 上册

    Down(1, "下册");           // 下册

    @EnumValue
    private int code;

    @JsonValue
    private String message;

    LevelEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
